<style>
.setimg{
	margin:-2px 5px 0 0 
}
</style>
<div class="row-fluid">
	<a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">列表数据</a>
    <div class="well">
		<!-- <button class="btn btn-primary ifrm" data-url="/index/addInput" data-width="720" data-height="650" data-title="录入信息" data-params="" style="float:right;padding:3px 6px">录入信息</button> -->
	    <div class="btn-toolbar">
		    <form>
		    	<label style="display: inline;">券号：</label><input class="input input-medium" type="text" name="card_number" value="<?=I('get.card_number')?>" />
		    	<label style="display: inline;margin-left:10px">顾客名字：</label><input class="input input-medium" type="text" name="user_name" value="<?=I('get.user_name')?>" />
		    	<!-- <label style="display: inline;inline;margin-left:10px">组会地点：</label><input class="input input-medium" type="text" name="group_address" value="<?=I('get.group_address')?>" />
		    	<label style="display: inline;inline;margin-left:10px">咨询师：</label><input class="input input-medium" type="text" name="counselor" value="<?=I('get.counselor')?>" />
		    	<label style="display: inline;inline;margin-left:10px">设计师：</label><input class="input input-medium" type="text" name="designer" value="<?=I('get.designer')?>" />
		    	<label style="display: inline;margin-left:10px">课长：</label><input class="input input-medium" type="text" name="director" value="<?=I('get.director')?>" /><br/>
		    	<label style="display: inline;margin-left:10px">课室：</label><input class="input input-medium" type="text" name="classroom" value="<?=I('get.classroom')?>" />
		    	<label style="display: inline;margin-left:10px">店家：</label><input class="input input-medium" type="text" name="shopper" value="<?=I('get.shopper')?>" />
		    	<label style="display: inline;margin-left: 10px">组会时间：</label><input readonly name="stime" class="input input-medium" onclick='WdatePicker({dateFmt:"yyyy-MM-dd HH:mm"})' type="text" placeholder="开始时间" value="<?=I('get.stime')?>" />&nbsp;
                <input readonly style="margin-left:10px" name="etime" placeholder="结束时间" class="input input-medium" onclick='WdatePicker({dateFmt:"yyyy-MM-dd HH:mm"})' type="text" value="<?=I('get.etime')?>" /> -->
		    	<input type="hidden" value="<?=I('get.res')?>" name="res" />
		    	<button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
		    </form>
		    <a href="/index/exportExcel?card_number=<?=I('get.card_number')?>&user_name=<?=I('get.user_name')?>"><button class="btn btn-primary" style="position:relative;float:right;padding:3px 6px;margin-right:0px;margin-top: -15px;">导出数据</button></a>
		</div>
		<hr>

		<table class="table">
		      <thead>
		        <tr>
		          <th style="text-align:center;">卡券编号</th>
		          <th style="text-align:center;">组会时间</th>
		          <!-- <th style="text-align:center;">销券人</th> -->
                  <th style="text-align:center;">组会地点</th>
		          <th style="text-align:center;">顾客</th>
		          <!-- <th style="text-align:center;">店家</th> -->
		      	  <!-- <th style="text-align:center;">服务商</th> -->
		      	  <!-- <th style="text-align:center;">咨询师</th> -->
		      	  <!-- <th style="text-align:center;">设计师</th> -->
		      	  <!-- <th style="text-align:center;">课长</th> -->
		      	  <!-- <th style="text-align:center;">课室</th> -->
		      	  <th style="text-align:center;">微雕机器操作人</th>
		      	  <th style="text-align:center;">配药操作人</th>
		      	  <th style="text-align:center;">注射操作人</th>
		      	  <th style="text-align:center;">乐力果精华(瓶)</th>
		      	  <th style="text-align:center;">操作</th>
		        </tr>
		      </thead>
		      <tbody>
		      	<?php if($getData){foreach($getData AS $key=>$val){ ?>
		        <tr> 
		          <td style="text-align:center;vertical-align:middle;"><?=$val['card_number']?></td>
		          <td style="text-align:center;vertical-align:middle;">
		          	<?=$val['input_time']?date('Y-m-d',$val['input_time']):''?>
		          </td>
		          <!-- <td style="text-align:center;vertical-align:middle;"><?=$val['input_name']?></td> -->
		          <td style="text-align:center;vertical-align:middle;"><?=$val['group_address']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['user_name']?></td>
		          <!-- <td style="text-align:center;vertical-align:middle;"><?=$val['shopper']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['servicer']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['counselor']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['designer']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['director']?></td>
		          <td  style="text-align:center;vertical-align:middle;"><?=$val['classroom']?></td> -->
		          <td style="text-align:center;vertical-align:middle;"><?=$val['machine_operator']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['dispens_operator']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['injection_operator']?></td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['dosage']?></td>
		          <td style="text-align:center;vertical-align:middle;">
					<a class="ifrm btn btn-info" href="javascript:void(0)" data-url="/index/addInput" style="padding: 0px 4px;" data-width="720" data-height="650" data-title="修改信息" data-params="id/<?=$val['id']?>"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
					<?php if(session('role_id') == 1 ){?>
					 <a href="/index/delInput?id=<?=$val['id']?>" class="decate btn btn-danger" style="padding: 0px 4px;" role="button" title="删除信息" data-toggle="modal"><i class="icon-remove"></i></a>&nbsp;&nbsp;
					<?php }?>
				 </td>
		        </tr>
		        <?php }}else{?>
		        	<tr><td style="text-align:center" colspan=16>暂无数据</td></tr>
		        <?php }?>
		      </tbody>
		   </table>
		   <span style="float:right;margin-top:-44px"><?=$page?></span>
	</div>
</div>
<script>
$(function(){
	$('.decate').click(function(){
		if(!window.confirm('确认'+$(this).attr('title')+'吗 ?')){
			return false;
		}
		window.location = $(this).attr('href');
	});
})
</script>